package com.pzz.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.pzz.entity.DataCode;
import com.pzz.service.DataCodeService;

@Controller
public class DataCodeController {
	
	
	@Resource
	private DataCodeService dataCodeService;
	
	  @RequestMapping("/")
	    public String index(Model model,DataCode dataCode) {

		  
		  List<DataCode> list = dataCodeService.findAll(dataCode);
		  
		  System.out.println(list);
	        return "index";
	    }
	
	  @RequestMapping("/index2")
	    public String index2(Model model,DataCode dataCode) {

		  
		  List<DataCode> list = dataCodeService.findAll(dataCode);
		  
		  System.out.println(list);
	        return "index";
	    }
	  

	 
}
